package com.imooc.sell.dataobject;

import lombok.Data;
import org.hibernate.annotations.DynamicUpdate;
import org.hibernate.annotations.Proxy;

import javax.persistence.Entity;
import javax.persistence.Id;
import java.util.Date;

@Entity
@Data
@Proxy(lazy = false)
@DynamicUpdate
public class User {
    /**
     * openid
     */
    @Id
    private String openid;
    /**
     * 微信昵称
     */
    private String nickName;
    /**
     * 微信头像
     */
    private String headImg;
    /**
     * 联系电话
     */
    private String phone;
    /**
     * 姓名
     */
    private String name;
    /**
     * 信息更新时间
     */
    private Date updateTime;

    public User() {

    }
}
